/**
 * 
 */
package com.gome.axwl.aoc.service.feign.fallback;

import com.gome.axwl.aoc.entity.driver.DriverIntegrationParamForOcsDto;
import com.gome.axwl.aoc.entity.dto.DriverEvaluationDataFromOrderDto;
import com.gome.axwl.aoc.service.feign.OrderFeignClient;
import com.gome.commons.core.ErrorCode;
import com.gome.commons.core.ResultData;
import org.springframework.stereotype.Component;

import java.util.List;

/**   
*    
* 项目名称：gome-axwl.op-service   
* 类名称：OrderFeignFallBack
* 类描述：   
* 创建人：chengh
* 创建时间：2018-4-25 09:50:47
* @version        
*/
@Component
public class OrderFeignFallBack implements OrderFeignClient {

	/**
	 * 分页查询订单列表
	 * @param orderNo
	 * @param customerAccount
	 * @param carrierId
	 * @param status
	 * @param pickStartTime
	 * @param pickEndTime
	 * @param deliverStartTime
	 * @param deliverEndTime
	 * @param acceptDcIds
	 * @param pageNum
	 * @param pageSize
	 * @return
	 */
	@Override
	public ResultData getOrderList(String orderNo, String customerAccount, String serviceProviderId, String carrierId, String status, String pickStartTime, String pickEndTime, String deliverStartTime, String deliverEndTime, Integer[] acceptDcIds, Integer pageNum, Integer pageSize, String taskNo, String waybillNo, String orderType) {
		return ResultData.newResultData(ErrorCode.FAILOR, "调用订单中心查询订单列表接口{queryAllOrder}服务有异常，请查看服务是否正常!");
	}

	/**
	 * 根据订单号查询运单列表
	 * @param pageSize
	 * @param pageNum
	 * @param orderId
	 * @return
	 */
	@Override
	public ResultData getWaybillByOrderNo(Integer pageSize, Integer pageNum, String taskNo, String orderId) {
		return ResultData.newResultData(ErrorCode.FAILOR, "调用订单中心根据订单号查询运单列表接口{queryWaybillByOrderNo}服务有异常，请查看服务是否正常!");
	}

	/**
	 * 查询订单详情
	 * @param orderNo
	 * @return
	 */
	@Override
	public ResultData getOrderDetail(String orderNo) {
		return ResultData.newResultData(ErrorCode.FAILOR, "调用订单中心根据查询订单详情接口{queryOrderDetail}服务有异常，请查看服务是否正常!");
	}

	/**
	 * 查询运单详情
	 * @param waybillNo
	 * @return
	 */
	@Override
	public ResultData getWaybillDetail(String waybillNo) {
		return ResultData.newResultData(ErrorCode.FAILOR, "调用订单中心查询运单详情接口{queryWaybillDetail}服务有异常，请查看服务是否正常!");
	}

	/**
	 * 查询运单详情
	 * @param code
	 * @return
	 */
	@Override
	public ResultData getStatus(String code) {
		return ResultData.newResultData(ErrorCode.FAILOR, "调用订单中心查询状态字典接口{queryDictionary}服务有异常，请查看服务是否正常!");
	}

	@Override
	public ResultData queryDriverTakingsDetail(Integer driverId, String month) {
		return ResultData.newResultData(ErrorCode.FAILOR, "调用订单中心查询司机接单天数接口{queryDriverTakingsDetail}服务有异常，请查看服务是否正常!");
	}

	@Override
	public ResultData<DriverEvaluationDataFromOrderDto> queryDriverCount(Integer driverId, String month) {
		return ResultData.newResultData(ErrorCode.FAILOR, "调用订单中心查询司机评价信息接口{queryDriverCount}服务有异常，请查看服务是否正常!");
	}

	@Override
	public ResultData<List<DriverEvaluationDataFromOrderDto>> queryDriverCounts(DriverIntegrationParamForOcsDto driverIntegrationParamForOcsDto) {
		return ResultData.newResultData(ErrorCode.FAILOR, "调用订单中心查询司机司机评价信息接口{queryDriverCounts}服务有异常，请查看服务是否正常!");
	}

}
